//取自via浏览器源码！
//可以作为自定义浏览器的搜索启动器

</html></a><form onsubmit="return search()" class="search_bar" title="搜索"><button onclick="search()" id="search_submit" value="" aria-label="搜索"><div class="search icon"></div></button><span><input class="search" onfocus="showButton()" onblur="hideButton()" type="text" value="" autocomplete="off" id="search_input" title="搜索"></span></form></div><script type="text/javascript">function showButton(){document.getElementById("search_submit").style.display="block"}
function hideButton(){""==document.getElementById("search_input").value&&(document.getElementById("search_submit").style.display="none")}
function search(){var a=document.getElementById("search_input");if(""!=a.value){try{location.href='via://search?q='+encodeURIComponent(a.value);}catch(b){alert(b)}a.value="";document.getElementById("search_submit").style.display="none";document.activeElement.blur()}return!1}
function fadeIn(a){if(a&&a.style)var b=Math.max(.05,parseFloat(a.style.opacity)),d=setInterval(function(){1<=b&&clearInterval(d);a.style.opacity=Math.min(1,b);b+=.1*b},6)}
function isGestureDisabled(){return document.activeElement&&"search_input"==document.activeElement.id||window.via&&!window.via.cmd(515)?!0:0!=(document.documentElement.scrollTop||document.body.scrollTop)};
function initGesture(f){var c=document.getElementById("content"),d=!1,h=0,b=0,g=0,a=0;f.addEventListener("touchstart",function(e){d=isGestureDisabled();d||(h=e.touches[0].screenY,a=b=0,document.body.style.overflow="visible")},!1);f.addEventListener("touchmove",function(e){d||(g=b,b=e.touches[0].screenY-h,a=Math.min(98,Math.max(0,a+b-g)),c.style.transform="translateY("+a+"px)",c.style.opacity=Math.max(.1,1-a/98),1<g!=1<b&&(document.body.style.overflow=1<b?"hidden":"visible"))},!1);f.addEventListener("touchend",function(e){if(!d){if(0!==a){if(88.2<a)try{window.via.cmd(514)}catch(k){}c.style.transform="translateY(0px)";fadeIn(c)}document.body.style.overflow="visible"}},!1)};
initGesture(document.getElementById("gesture-indicator"));initGesture(document.getElementById("content"));</script><script src="file:///android_asset/opensug2.js"></script><script type="text/javascript">function show(str){var searchbox = document.getElementById("search_input"); searchbox.value = str; searchbox.blur(); search();}var params = {"formActiveClassName":'search_bar_active' }; OpenSuggestion.bind("search_input",params,show); </script></div></body></html>